<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 16:21:31
 * @LastEditTime: 2023-07-04 15:58:30
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Http\Controllers\System;

use App\Http\Controllers\Controller;
use App\Http\Services\System\RoleService;
use Illuminate\Http\Request;

class RoleController extends Controller
    {
    //
    public function __construct(RoleService $user_services)
        {
        $this->service = $user_services;
        }
    public function save(Request $request)
        {
        return $this->service->save($request->toArray());
        }
    public function delete(Request $request)
        {
        return $this->service->delete();
        }
    public function menu(Request $request)
        {
        return $this->service->menu($request);
        }
    public function department(Request $request)
        {
        return $this->service->department($request);
        }
    public function savePermission(Request $request)
        {
        return $this->service->savePermission($request);
        }

    public function column()
        {
        return $this->service->column();
        }

    }